package advanced.java.ch01.p1.application;

import java.io.IOException;

import advanced.java.ch01.p1.RpcServer;

public class Server {

	public static void main(String[] args) throws ClassNotFoundException, IOException, InterruptedException {
		
		RpcServer server= new RpcServer("advanced.java.ch01.p1.application.Service",new ServiceImpl(), 8009);
		server.start();
		Thread.sleep(10000);
		server.stop();
		Thread.sleep(1000);
	}

}
